import request from '@/router/axios';

// 获取打分议题列表
export const getPurchaseplanList = (current, size, params) => {
  return request({
    url: '/api/blade-purchase/scoreinfo/ftopicList',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  })
}

// 获取详情
export const detail = (id) => {
  return request({
    url: '/api/blade-purchase/scoreinfo/detail',
    method: 'get',
    params: {
      id
    }
  })
}

// 专业组列表
export const getProGroupNoList = () => {
  return request({
    url: '/api/blade-purchase/materialgroupinfo/proGroupNoList',
    method: 'get'
  })
}
// 获取物料组
export const getMaterialGroupNoList = (userId) => {
  return request({
    url: '/api/blade-purchase/materialgroupinfo/materialGroupNoList',
    method: 'get',
    params: {
      userId
    }
  })
}
// 保存
export const save = (data) => {
  return request({
    url: '/api/blade-purchase/scoreinfo/save',
    method: 'post',
    data: data
  })
}
